Javascript Scope Variable Undefined Outside ` Then

Javascript Scope Variable Undefined Outside ` Then